package com.hdw.auth.bean.model;

import java.io.Serializable;

public class BaseAuthUserole implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long idUserole;

    private Long idUse;

    private Long idRole;

    public Long getIdUserole() {
        return idUserole;
    }

    public void setIdUserole(Long idUserole) {
        this.idUserole = idUserole;
    }

    public Long getIdUse() {
        return idUse;
    }

    public void setIdUse(Long idUse) {
        this.idUse = idUse;
    }

    public Long getIdRole() {
        return idRole;
    }

    public void setIdRole(Long idRole) {
        this.idRole = idRole;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BaseAuthUserole other = (BaseAuthUserole) that;
        return (this.getIdUserole() == null ? other.getIdUserole() == null : this.getIdUserole().equals(other.getIdUserole()))
            && (this.getIdUse() == null ? other.getIdUse() == null : this.getIdUse().equals(other.getIdUse()))
            && (this.getIdRole() == null ? other.getIdRole() == null : this.getIdRole().equals(other.getIdRole()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIdUserole() == null) ? 0 : getIdUserole().hashCode());
        result = prime * result + ((getIdUse() == null) ? 0 : getIdUse().hashCode());
        result = prime * result + ((getIdRole() == null) ? 0 : getIdRole().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", idUserole=").append(idUserole);
        sb.append(", idUse=").append(idUse);
        sb.append(", idRole=").append(idRole);
        sb.append("]");
        return sb.toString();
    }
}